const AsynchronousRoutings = [
  {
    path: '/workspace',
    name: 'workspace',
    component: () => import('@/views/layout/index.vue'),
    meta: {
      requiresAuth: true,
      title: '关于',
      permission: ['admin']
    },
    children: [
      {
        path: '/about',
        name: 'about',
        component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue'),
        meta: {
          requiresAuth: true,
          title: '内容A',
          permission: ['admin']
        }
      },
      {
        path: '/content',
        name: 'content',
        component: () => import(/* webpackChunkName: "content" */ '../views/HomeView.vue'),
        meta: {
          requiresAuth: true,
          title: '内容B',
          permission: ['admin']
        }
      }
    ]
  },
  {
    path: '/homeA',
    name: 'homeA',
    component: () => import(/* webpackChunkName: "about" */ '../views/HomeView.vue'),
    meta: {
      title: '首页',
      permission: ['user'],
      hidden: false
    }
  }
]

export default AsynchronousRoutings
